package main

import (
	"dwcms/module"
	"dwcms/router"
	"dwcms/utils"
	"fmt"
	"github.com/gin-gonic/gin"
)

func main() {
	utils.Init()
	module.Initdb()
	gin.SetMode(utils.AppMode)
	r := gin.Default()
	r.SetTrustedProxies(nil)
	router.Initrouter(r)
	r.Run(fmt.Sprintf("%s:%s", utils.SiteName, utils.HttpPort))
}
